<!DOCTYPE html>
<html lang="en" xmlns:th="https://thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>Hello</h1>
<!--get请求跳转到表单页面-->
<a th:href="@{/goods/query?id = 1}">/query</a><br>
<!--表单页面:提交账号密码性别-->
<form method="POST" th:action="@{/goods/get}">
    账户:<input name="name" type="text"><br>
    密码:<input name="password" type="password"><br>
    <input type="submit" value="提交">
</form>
</body>
</html>